Documentation additions and fixes.
authorMatthias Clasen <mclasen@redhat.com>
Thu, 29 Jun 2006 09:18:07 +0000 (09:18 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Thu, 29 Jun 2006 09:18:07 +0000 (09:18 +0000)
2006-06-28  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkprinter.c:
        * gtk/gtkprintunixdialog.c:
        * gtk/gtkprintoperationpreview.c:
        * gtk/gtkprintcontext.c (gtk_print_context_set_cairo_context):
        * gtk/gtklabel.c (gtk_label_set_line_wrap_mode):
        * gtk/gtkentry.c (gtk_entry_new):
        * gtk/gtkprintoperation.c (gtk_print_operation_set_custom_tab_label):
        * gtk/gtkclipboard.c (gtk_clipboard_wait_for_rich_text): Documentation
        additions and fixes.

        * gtk/gtkaspectframe.h:
        * gtk/gtkaboutdialog.c:
        * gtk/gtkcalendar.c:
        * gtk/gtkinputdialog.c:
        * gtk/gtk.symbols: Remove unnecessary includes.

        * gtk/gtkprogress.[hc]:
        * gtk/gtkitemfactory.[hc]: Don't unnecessarily use GTK_COMPILATION,
        remove unnecessary includes.

17 files changed:
ChangeLog
ChangeLog.pre-2-10
gtk/gtk.symbols
gtk/gtkaboutdialog.c
gtk/gtkaspectframe.h
gtk/gtkcalendar.c
gtk/gtkclipboard.c
gtk/gtkentry.c
gtk/gtkinputdialog.c
gtk/gtklabel.c
gtk/gtkprintcontext.c
gtk/gtkprinter.c
gtk/gtkprintoperation.c
gtk/gtkprintoperationpreview.c
gtk/gtkprintunixdialog.c
gtk/gtkprogress.c
gtk/gtkprogress.h

index 09358891604bd66adf4b3a1f66f5ab31a290fe4b..baa24ed7eaad3b92d9a3f6fc7adb1e4d833398f6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,24 @@
 2006-06-28  Matthias Clasen  <mclasen@redhat.com>
 
-       * gtk/gtkitemfactory.[hc]: Don't unnecessarily use 
-       GTK_COMPILATION.
+       * gtk/gtkprinter.c: 
+       * gtk/gtkprintunixdialog.c: 
+       * gtk/gtkprintoperationpreview.c: 
+       * gtk/gtkprintcontext.c (gtk_print_context_set_cairo_context): 
+       * gtk/gtklabel.c (gtk_label_set_line_wrap_mode): 
+       * gtk/gtkentry.c (gtk_entry_new):       
+       * gtk/gtkprintoperation.c (gtk_print_operation_set_custom_tab_label): 
+       * gtk/gtkclipboard.c (gtk_clipboard_wait_for_rich_text): Documentation
+       additions and fixes.
+
+       * gtk/gtkaspectframe.h:
+       * gtk/gtkaboutdialog.c:
+       * gtk/gtkcalendar.c:
+       * gtk/gtkinputdialog.c: 
+       * gtk/gtk.symbols: Remove unnecessary includes.
+       
+       * gtk/gtkprogress.[hc]: 
+       * gtk/gtkitemfactory.[hc]: Don't unnecessarily use GTK_COMPILATION,
+       remove unnecessary includes.
 
        * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Only select the
        XKB event details we actually care about.  (#346079, Ryan Lortie)
index 09358891604bd66adf4b3a1f66f5ab31a290fe4b..baa24ed7eaad3b92d9a3f6fc7adb1e4d833398f6 100644 (file)
@@ -1,7 +1,24 @@
 2006-06-28  Matthias Clasen  <mclasen@redhat.com>
 
-       * gtk/gtkitemfactory.[hc]: Don't unnecessarily use 
-       GTK_COMPILATION.
+       * gtk/gtkprinter.c: 
+       * gtk/gtkprintunixdialog.c: 
+       * gtk/gtkprintoperationpreview.c: 
+       * gtk/gtkprintcontext.c (gtk_print_context_set_cairo_context): 
+       * gtk/gtklabel.c (gtk_label_set_line_wrap_mode): 
+       * gtk/gtkentry.c (gtk_entry_new):       
+       * gtk/gtkprintoperation.c (gtk_print_operation_set_custom_tab_label): 
+       * gtk/gtkclipboard.c (gtk_clipboard_wait_for_rich_text): Documentation
+       additions and fixes.
+
+       * gtk/gtkaspectframe.h:
+       * gtk/gtkaboutdialog.c:
+       * gtk/gtkcalendar.c:
+       * gtk/gtkinputdialog.c: 
+       * gtk/gtk.symbols: Remove unnecessary includes.
+       
+       * gtk/gtkprogress.[hc]: 
+       * gtk/gtkitemfactory.[hc]: Don't unnecessarily use GTK_COMPILATION,
+       remove unnecessary includes.
 
        * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Only select the
        XKB event details we actually care about.  (#346079, Ryan Lortie)
index fc1983bc6131a8a70ff611567b24d5d5c2fa9ef9..4de8b47346b8ed4b6ca303293ae42c01547dc0b1 100644 (file)
@@ -2870,6 +2870,7 @@ gtk_progress_bar_set_ellipsize
 
 #if IN_HEADER(__GTK_PROGRESS_H__)
 #if IN_FILE(__GTK_PROGRESS_C__)
+#ifndef GTK_DISABLE_DEPRECATED
 gtk_progress_configure
 gtk_progress_get_current_percentage
 gtk_progress_get_current_text
@@ -2886,6 +2887,7 @@ gtk_progress_set_text_alignment
 gtk_progress_set_value
 #endif
 #endif
+#endif
 
 #if IN_HEADER(__GTK_RADIO_ACTION_H__)
 #if IN_FILE(__GTK_RADIO_ACTION_C__)
index 2a0d465eaacbaa7579932813c8d13a91ef318545..01c761c2d501be6988bd5bdb18579a7e7829449b 100644 (file)
@@ -30,6 +30,8 @@
 
 #include <config.h>
 
+#include <string.h>
+
 #include <gdk/gdkkeysyms.h>
 
 #include "gtkaboutdialog.h"
 #include "gtkstock.h"
 #include "gtktextview.h"
 #include "gtkvbox.h"
-#include "gtkviewport.h"
 #include "gtkiconfactory.h"
 #include "gtkprivate.h"
 #include "gtkintl.h"
 
 #include "gtkalias.h"
 
-#include <string.h>
-
 static GdkColor default_link_color = { 0, 0, 0, 0xeeee };
 static GdkColor default_visited_link_color = { 0, 0x5555, 0x1a1a, 0x8b8b };
 
index 437be5e26ecd45ffb07385ef2c72274b14166b74..e85888c6e1d4f16d6be3e496bc189f2725315e59 100644 (file)
@@ -29,7 +29,6 @@
 
 
 #include <gdk/gdk.h>
-#include <gtk/gtkbin.h>
 #include <gtk/gtkframe.h>
 
 G_BEGIN_DECLS
index 90141d575590e162ccce0786bec1e682e6a912d5..23c593006cfc81600524e3f25c3493f4c3c052f9 100644 (file)
@@ -47,8 +47,6 @@
 #include <windows.h>
 #endif
 
-#include <glib/gprintf.h>
-
 #undef GTK_DISABLE_DEPRECATED
 #include "gtkcalendar.h"
 #define GTK_DISABLE_DEPRECATED
index 51b42a4f2185f410816c85f0037113e52fc1f2da..96ebea5bcebd1bcb71ec041aa8a2be5720e35619 100644 (file)
@@ -1337,6 +1337,7 @@ clipboard_rich_text_received_func (GtkClipboard *clipboard,
  * gtk_clipboard_wait_for_rich_text:
  * @clipboard: a #GtkClipboard
  * @buffer: a #GtkTextBuffer
+ * @format: return location for the format of the returned data
  * @length: return location for the length of the returned data
  *
  * Requests the contents of the clipboard as rich text.  This function
index 9e821e57e8f8bee4df70c9fa6774c9a997c5fd85..4063d9ceeac447498bb4022d399d3c3e598ecc25 100644 (file)
@@ -4059,6 +4059,13 @@ gtk_entry_update_primary_selection (GtkEntry *entry)
 /* Public API
  */
 
+/**
+ * gtk_entry_new:
+ *
+ * Creates a new entry.
+ *
+ * Return value: a new #GtkEntry.
+ */
 GtkWidget*
 gtk_entry_new (void)
 {
index 54fb113b3e378816c59cb7886d87bb9f5c5d2a1f..ee685dd0b3100e384336e3be2bffc9cbfc8976d6 100644 (file)
 
 
 #include <config.h>
-#include <glib/gprintf.h>
 #include <stdlib.h>
 #include "gdk/gdkkeysyms.h"
+#include "gtkinputdialog.h"
 #include "gtkbutton.h"
 #include "gtkentry.h"
 #include "gtkhbox.h"
-#include "gtkhseparator.h"
-#include "gtkinputdialog.h"
 #include "gtklabel.h"
-#include "gtklistitem.h"
 #include "gtkmain.h"
 #include "gtkmarshalers.h"
 #include "gtkmenu.h"
index 2a755adc78e01214deaf9064fdd30bcc5b04824b..8931f951443d2188dc2336355c38d79445fd1e65 100644 (file)
@@ -1721,7 +1721,7 @@ gtk_label_get_line_wrap (GtkLabel *label)
 /**
  * gtk_label_set_line_wrap_mode:
  * @label: a #GtkLabel
- * @wrap: the line wrapping mode
+ * @wrap_mode: the line wrapping mode
  *
  * If line wrapping is on (see gtk_label_set_line_wrap()) this controls how
  * the line wrapping is done. The default is %PANGO_WRAP_WORD which means
index 219a830ea6807426b15c437de2f743f58171292f..c1406644e786991cd3f041dfb9e6827d61de1df4 100644 (file)
@@ -96,7 +96,22 @@ _gtk_print_context_new (GtkPrintOperation *op)
   
   return context;
 }
-
+/**
+ * gtk_print_context_set_cairo_context:
+ * @context: a #GtkPrintContext
+ * @cr: the cairo context
+ * @dpi_x: the horizontal resolution to use with @cr
+ * @dpi_y: the vertical resolution to use with @cr
+ *
+ * Sets a new cairo context on a print context. 
+ * 
+ * This function is intended to be used when implementing
+ * an internal print preview, it is not needed for printing,
+ * since GTK+ itself creates a suitable cairo context in that
+ * case.
+ *
+ * Since: 2.10 
+ */
 void
 gtk_print_context_set_cairo_context (GtkPrintContext *context,
                                     cairo_t         *cr,
@@ -135,7 +150,9 @@ gtk_print_context_set_cairo_context (GtkPrintContext *context,
               context->pixels_per_unit_x,
               context->pixels_per_unit_y);
     
-  /* We use the unit-scaled resolution, as we still want fonts given in points to work */
+  /* We use the unit-scaled resolution, as we still want 
+   * fonts given in points to work 
+   */
   pango_cairo_font_map_set_resolution (PANGO_CAIRO_FONT_MAP (context->fontmap),
                                       dpi_y / context->pixels_per_unit_y);
 }
index dc5d20594862460848fbed4d273ce6170a255ded..c0230472aa80fc3f4da75a66c174b880a36fa6ef 100644 (file)
@@ -644,6 +644,17 @@ gtk_printer_is_virtual (GtkPrinter *printer)
   return printer->priv->is_virtual;
 }
 
+/**
+ * gtk_printer_accepts_pdf:
+ * @printer: a #GtkPrinter
+ *
+ * Returns whether the printer accepts input in
+ * PDF format.  
+ *
+ * Return value: %TRUE if @printer accepts PDF
+ *
+ * Since: 2.10
+ */
 gboolean 
 gtk_printer_accepts_pdf (GtkPrinter *printer)
 { 
@@ -652,6 +663,17 @@ gtk_printer_accepts_pdf (GtkPrinter *printer)
   return printer->priv->accepts_pdf;
 }
 
+/**
+ * gtk_printer_accepts_ps:
+ * @printer: a #GtkPrinter
+ *
+ * Returns whether the printer accepts input in
+ * PostScript format.  
+ *
+ * Return value: %TRUE if @printer accepts PostScript
+ *
+ * Since: 2.10
+ */
 gboolean 
 gtk_printer_accepts_ps (GtkPrinter *printer)
 { 
@@ -790,8 +812,21 @@ _gtk_printer_get_capabilities (GtkPrinter *printer)
   return backend_class->printer_get_capabilities (printer);
 }
 
+/**
+ * gtk_printer_compare:
+ * @a: a #GtkPrinter
+ * @b: another #GtkPrinter
+ *
+ * Compares two printers.
+ * 
+ * Return value: 0 if the printer match, a negative value if @a &lt; @b, 
+ *   or a positive value if @a &gt; @b
+ *
+ * Since: 2.10
+ */
 gint
-gtk_printer_compare (GtkPrinter *a, GtkPrinter *b)
+gtk_printer_compare (GtkPrinter *a, 
+                     GtkPrinter *b)
 {
   const char *name_a, *name_b;
   
index 7667b6e2026d2ebf750f2347e8da3077521133c4..995eeff0785ed685b019d6400d320c3a97e61350 100644 (file)
@@ -583,7 +583,7 @@ gtk_print_operation_class_init (GtkPrintOperationClass *class)
                  G_TYPE_NONE, 1, GTK_TYPE_PRINT_CONTEXT);
 
    /**
-   * Gtkprintoperation::paginate:
+   * GtkPrintOperation::paginate:
    * @operation: the #GtkPrintOperation on which the signal was emitted
    * @context: the #GtkPrintContext for the current operation
    *
@@ -600,6 +600,8 @@ gtk_print_operation_class_init (GtkPrintOperationClass *class)
    * it all in the begin-print handler, and set the number of pages
    * from there.
    *
+   * Return value: %TRUE if pagination is complete
+   *
    * Since: 2.10
    */
   signals[PAGINATE] =
@@ -1630,7 +1632,7 @@ gtk_print_operation_set_allow_async (GtkPrintOperation  *op,
 
 
 /**
- * gtk_print_operation_set_custom_tag_label:
+ * gtk_print_operation_set_custom_tab_label:
  * @op: a #GtkPrintOperation
  * @label: the label to use, or %NULL to use the default label
  *
index 776fb362026ad80cdc0895e80051025cc5e68081..a3357cfaf62b2b2a13fbf84fc5a225855f1c8d30 100644 (file)
@@ -88,7 +88,15 @@ gtk_print_operation_preview_base_init (gpointer g_iface)
     }
 }
 
-
+/**
+ * gtk_print_operation_preview_render_page:
+ * @preview: a #GtkPrintOperationPreview
+ * @page_nr: the page to render
+ *
+ * Renders a page to the preview.
+ *
+ * Since: 2.10 
+ */
 void    
 gtk_print_operation_preview_render_page (GtkPrintOperationPreview *preview,
                                         gint                      page_nr)
@@ -99,6 +107,14 @@ gtk_print_operation_preview_render_page (GtkPrintOperationPreview *preview,
                                                                page_nr);
 }
 
+/**
+ * gtk_print_operation_preview_end_preview:
+ * @preview: a #GtkPrintOperationPreview
+ *
+ * Ends a preview. 
+ *
+ * Since: 2.10
+ */
 void
 gtk_print_operation_preview_end_preview (GtkPrintOperationPreview *preview)
 {
@@ -107,6 +123,18 @@ gtk_print_operation_preview_end_preview (GtkPrintOperationPreview *preview)
   GTK_PRINT_OPERATION_PREVIEW_GET_IFACE (preview)->end_preview (preview);
 }
 
+/**
+ * gtk_print_operation_preview_is_selected:
+ * @preview: a #GtkPrintOperationPreview
+ * @page_nr: a page number
+ *
+ * Returns whether the given page is included in the set of pages that
+ * have been selected for printing.
+ * 
+ * Returns: %TRUE if the page has been selected for printing
+ *
+ * Since: 2.10
+ */
 gboolean
 gtk_print_operation_preview_is_selected (GtkPrintOperationPreview *preview,
                                         gint                      page_nr)
index a15ed4862f24f9d799ca4edd47341326e94abc6d..fb485409b40b79d554f91b4aef3c0adeb181f5f0 100644 (file)
@@ -2680,6 +2680,16 @@ gtk_print_unix_dialog_get_settings (GtkPrintUnixDialog *dialog)
   return settings;
 }
 
+/**
+ * gtk_print_unix_dialog_add_custom_tab:
+ * @dialog: a #GtkPrintUnixDialog
+ * @child: the widget to put in the custom tab
+ * @tab_label: the widget to use as tab label
+ *
+ * Adds a custom tab to the print dialog.
+ *
+ * Since: 2.10
+ */
 void
 gtk_print_unix_dialog_add_custom_tab (GtkPrintUnixDialog *dialog,
                                      GtkWidget          *child,
@@ -2694,7 +2704,7 @@ gtk_print_unix_dialog_add_custom_tab (GtkPrintUnixDialog *dialog,
 /**
  * gtk_print_unix_dialog_set_manual_capabilities:
  * @dialog: a #GtkPrintUnixDialog
- * @capabilites: the printing capabilities of your application
+ * @capabilities: the printing capabilities of your application
  *
  * This lets you specify the printing capabilities your application
  * supports. For instance, if you can handle scaling the output then
index ba403a6550eca7a070efe4ebf43eab8bfca3c93d..023dcdd8e5883bdd2da6682fc3c00c1b2ebee02c 100644 (file)
  */
 
 #include <config.h>
-#include <glib/gprintf.h>
 #include <math.h>
 #include <string.h>
+#undef GTK_DISABLE_DEPRECATED
 #include "gtkprogress.h" 
+#define GTK_DISABLE_DEPRECATED
 #include "gtkprivate.h" 
 #include "gtkintl.h"
 #include "gtkalias.h"
index 4b25942426957ffb2f6f0855424948520da0366d..76c005f4fbf2ac7ce233861997d9f825729ea275 100644 (file)
@@ -35,7 +35,7 @@
 
 G_BEGIN_DECLS
 
-#if !defined (GTK_DISABLE_DEPRECATED) || defined (GTK_COMPILATION)
+#if !defined (GTK_DISABLE_DEPRECATED)
 
 #define GTK_TYPE_PROGRESS            (gtk_progress_get_type ())
 #define GTK_PROGRESS(obj)            (GTK_CHECK_CAST ((obj), GTK_TYPE_PROGRESS, GtkProgress))
@@ -44,7 +44,7 @@ G_BEGIN_DECLS
 #define GTK_IS_PROGRESS_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PROGRESS))
 #define GTK_PROGRESS_GET_CLASS(obj)  (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_PROGRESS, GtkProgressClass))
 
-#endif /* !GTK_DISABLE_DEPRECATED || GTK_COMPILATION */
+#endif /* !GTK_DISABLE_DEPRECATED */
 
 typedef struct _GtkProgress       GtkProgress;
 typedef struct _GtkProgressClass  GtkProgressClass;
@@ -84,7 +84,7 @@ struct _GtkProgressClass
  * directly.
  */
 
-#if !defined (GTK_DISABLE_DEPRECATED) || defined (GTK_COMPILATION)
+#if !defined (GTK_DISABLE_DEPRECATED)
 
 GType      gtk_progress_get_type            (void) G_GNUC_CONST;
 void       gtk_progress_set_show_text       (GtkProgress   *progress,
@@ -98,7 +98,7 @@ void       gtk_progress_set_adjustment      (GtkProgress   *progress,
                                             GtkAdjustment *adjustment);
 void       gtk_progress_configure           (GtkProgress   *progress,
                                             gdouble        value,
-                                            gdouble        min,
+                                            gdouble        hmin,
                                             gdouble        max);
 void       gtk_progress_set_percentage      (GtkProgress   *progress,
                                             gdouble        percentage);
@@ -114,7 +114,7 @@ gdouble    gtk_progress_get_current_percentage (GtkProgress *progress);
 gdouble    gtk_progress_get_percentage_from_value (GtkProgress *progress,
                                                   gdouble      value);
 
-#endif /* !GTK_DISABLE_DEPRECATED || GTK_COMPILATION */
+#endif /* !GTK_DISABLE_DEPRECATED */
 
 G_END_DECLS